<%@page import="member.domain.Member"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<!-- 로그인 여부를 확인해서 로그인 했으면 성공 메세지를 보여주고 아니면 login_form으로 이동 -->
<%
	Member member = (Member)session.getAttribute("login_member");
	if(member!=null){//로그인 된 클라이언트
%>
<%=member.getName()%> 로그인 환영합니다.

<p>
<a href="/myservlet/MyPageServlet">Mypage</a>
</p>


<% 	}else{//로그인 안한 클라이언트
	response.sendRedirect("/myservlet/member/login_form.jsp");
	return;
}
%>
</body>
</html>